'use strict';
const Service = require('egg').Service;

class fpcyService extends Service {
    // 根据发票代码查询发票种类接口
    async cxfpdmzl(params) {
            const { serverUrl, port1 } = this.config.news; //获取接口公共部分 config里面配置
            const data = await this.ctx.curl(`${serverUrl}:${port1}/wyfp/fpcy/findFpzlByFpdm`, {
                method: 'get',
                // contentType: 'json',
                data: params,
                dataType: 'json'
            });
            // console.log(data.data);
            return data;
        }
        // 查验弹层页面接口
    async pslayer(params) {
        const { serverUrl, port1 } = this.config.news; //获取接口公共部分 config里面配置
        console.log('params', params)
        const data = await this.ctx.curl(`${serverUrl}:${port1}/wyfp/fpcy/fpcyyh`, {
            method: 'get',
            // contentType: 'json',
            data: params,
            dataType: 'json'
        });
        this.ctx.logger.info('12222222', data.data)
        return data;
    }
}

module.exports = fpcyService;